* dispnew.c (getenv): Extern declaration deleted; this is done in
authorJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 08:00:27 +0000 (08:00 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 08:00:27 +0000 (08:00 +0000)
config.h.

* dispnew.c (init_display): Compare the return value of getenv to
zero before setting display_arg, instead of just using the pointer
as a truth value.

src/dispnew.c

index b1f15f2ee8e4bfb792ae5e05eb21ea6c570fd3e1..137555efb9b70e6b81369a189a2ae16839bfe8a5 100644 (file)
@@ -45,8 +45,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "xterm.h"
 #endif /* HAVE_X_WINDOWS */
 
-extern char *getenv ();
-
 #define max(a, b) ((a) > (b) ? (a) : (b))
 #define min(a, b) ((a) < (b) ? (a) : (b))
 
@@ -1999,9 +1997,9 @@ init_display ()
   if (! display_arg)
     {
 #ifdef VMS
-      display_arg = getenv ("DECW$DISPLAY");
+      display_arg = (getenv ("DECW$DISPLAY") != 0);
 #else
-      display_arg = getenv ("DISPLAY");
+      display_arg = (getenv ("DISPLAY") != 0);
 #endif
     }